package com.easy.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easy.user.pojo.Membership;

/**
 * 会员服务
 *
 * @author RuoYu
 * @date 2022/12/25
 */
public interface IMembershipService extends IService<Membership> {

    /**
     * 添加成员
     * 添加会员
     *
     * @param membership 会员
     * @return boolean 添加成功：true
     */
    public boolean addMembership(Membership membership);

    /**
     * 删除会员
     *
     * @param membership 会员
     * @return boolean 添加成功：true
     */
    public boolean deleteMembership(Membership membership);

    /**
     * 更新会员
     *
     * @param membership 会员
     * @return boolean 添加成功：true
     */
    public boolean updateMembership(Membership membership);

    /**
     * 查询会员
     *
     * @param membership 会员
     * @return {@link Membership}
     */
    public Membership queryMembership(Membership membership);

}
